package com.gujianjian.annoimport.selector;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        //这里目的是将UserConfig 注入容器中
        return new String[]{"com.gujianjian.annoimport.config.UserConfig"};
    }
}